import 'dart:convert';

import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/risk_img_entity.g.dart';
export 'package:safetymonitor/generated/json/risk_img_entity.g.dart';

/// 随手拍实体
@JsonSerializable()
class RiskImgEntity {

	RiskImgEntity();

	factory RiskImgEntity.fromJson(Map<String, dynamic> json) => $RiskImgEntityFromJson(json);
	late int id = 0;
	late int companyId = 0;
	late int securityControlRiskPointId = 0;
	late String securityControlRiskPointName = '';
	late int securityControlActivityId = 0;
	late String securityControlActivityName = '';
	late int confirmPersonId = 0;
	late String confirmPersonName = '';
	late String description = '';
	late int reportDeptId = 0;
	late String reportDeptName = '';
	late String imgUrl = '';
	late String createTime = '';
	late String videoUrl = '';

	Map<String, dynamic> toJson() => $RiskImgEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}